package com.train.mgr.modules.biz.service;

import com.train.common.model.PageResult;
import com.train.mgr.modules.biz.dto.request.CourseStuGroupReqDTO;
import com.train.mgr.modules.biz.dto.request.GroupQueryDTO;
import com.train.mgr.modules.biz.dto.response.GroupRespListDTO;
import com.train.mgr.modules.biz.entity.CourseStuGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * 课程学员分组表 服务类
 * </p>
 *
 * @author cxg
 * @date 2025-10-02
 */
public interface ICourseStuGroupService extends IService<CourseStuGroup> {

    boolean add(CourseStuGroupReqDTO body);

    CourseStuGroup selectGroupIdByUser(Long courseId, Long userId);

    boolean update(CourseStuGroupReqDTO body);

    PageResult<GroupRespListDTO> pageList(GroupQueryDTO param);

    boolean deleteById(Long id);

    String findGroupNameByUserId(Long courseId, Long userId);
}
